"""
PROJECT: dsocket
FILE: routings.py.py
AUTHOR: wensen
CREATE: 2022-02-16
websocket的路由分发配置
"""

from django.urls import path

from dsocket.consumers import AsyncChatConsumer, AsyncAnnouncementConsumer, ServiceAsyncWebsocketConsumer

websocket_urlpatterns = [
    # re_path(r'ws/chat/(?P<room_name>\w+)/$', ChatConsumer.as_asgi()),
    path('ws/chat/<int:room_name>/', AsyncChatConsumer.as_asgi()),

    path("ws/announcement", AsyncAnnouncementConsumer.as_asgi()),

    path("ws/service", ServiceAsyncWebsocketConsumer.as_asgi()),
]
